home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Headers
/
foundation
/
NSBundle.h
< prev
next >
Wrap
Text File
|
1994-05-02
|
1KB
|
53 lines
/* NSBundle.h
Dynamically loadable code with resources
Copyright 1993, 1994, NeXT, Inc.
NeXT, Aug 1993
*/
#import <foundation/NSArray.h>
/* This module is a cover/replacement for the old NXBundle with some foundation conveniences;
*/
/*************** Class ***********/
@interface NSBundle:NSObject {
id _realBundle;
BOOL isLoaded;
}
+ (NSBundle *)bundleWithPath:(NSString *)path;
- initWithPath:(NSString *)path;
/* Path is the path for the bundle itself, e.g. "/NextApps/MyApp/foo.bundle" */
+ (NSBundle *)mainBundle;
+ (NSBundle *)bundleForClass:cls;
+ (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext inDirectory:(NSString *)bundlePath withVersion:(int)version;
/* Returns nil of that path; ext may be nil */
- (NSString *)bundlePath;
- classNamed:(NSString *)className;
- principalClass;
- (void)setBundleVersion:(unsigned)version;
- (unsigned)bundleVersion;
- (NSString *)pathForResource:(NSString *)name ofType:(NSString *)ext;
- (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value comment:(NSString *)comment;
- (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value comment:(NSString *)comment table:(NSString *)tableName; /* nil tableName ok for the default */
+ (void)setSystemLanguages:(NSArray *)languages;
+ (void)stripAfterLoading:(BOOL)flag;
/* Default is YES; NO makes bundles easier to debug */
@end